import request from '@/utils/request'

const BASE_URL = '/depot/location'

export function getDepotLocationPageList(data) {
  return request({
    url: BASE_URL + '/getDepotLocationPageList',
    method: 'post',
    data
  })
}

export function getDepotLocationInfo(data) {
  return request({
    url: BASE_URL + '/getDepotLocationInfo',
    method: 'post',
    data
  })
}

export function addDepotLocation(data) {
  return request({
    url: BASE_URL + '/addDepotLocation',
    method: 'post',
    data
  })
}

export function modifyDepotLocation(data) {
  return request({
    url: BASE_URL + '/modifyDepotLocation',
    method: 'post',
    data
  })
}

export function deleteDepotLocation(data) {
  return request({
    url: BASE_URL + '/deleteDepotLocation',
    method: 'post',
    data
  })
}

export function setDepotLocationStatusEnable(data) {
  return request({
    url: BASE_URL + '/setDepotLocationStatusEnable',
    method: 'post',
    data
  })
}

export function setDepotLocationStatusDisable(data) {
  return request({
    url: BASE_URL + '/setDepotLocationStatusDisable',
    method: 'post',
    data
  })
}

export function getDepotLocationForFree(data) {
  return request({
    url: BASE_URL + '/getDepotLocationForFree',
    method: 'POST',
    data
  })
}
